package day04;

import java.util.Arrays;
import java.util.Scanner;

/**
 * @author yangwenqi
 * @decs TODO
 * @date 2025/4/19
 */
public class Test06 {
    public static void main(String[] args) {
        System.out.println("请输入班级人数：");
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] arr = new int[n];
        int sum=0;
        int count=0;
        for (int i = 0; i < n; i++) {
            arr[i] = (int)(Math.random()*101);
            if(arr[i]<60){
                count++;
            }
            sum+=arr[i];
        }
        System.out.println("考试成绩情况："+ Arrays.toString(arr));
        System.out.println("不及格人数："+count);
        System.out.println("班级平均分："+sum/n);
        sc.close();

    }
}
